package com.qf.mapper;

import com.qf.entity.Role;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

public interface RoleMapper extends Mapper<Role> {

    List<Role> findByDeptId(@Param("deptId") Integer deptId);

    //分页数据
    List<Role> findAllInfo(@Param("roleName") String roleName,@Param("deptName") String deptName,@Param("roleStatus") Integer roleStatus);
    //根据roleId查询role信息
    Role selectRoleById(@Param("roleId") Integer roleId);

    //添加角色信息
    Integer insertByRole(Role role);

    //添加中间表
    Integer insertMiddle(Map map);
}
